﻿<%@ Page Title="" Language="C#" MasterPageFile="~/AdminCP/admincp.Master" AutoEventWireup="true"
    CodeBehind="Image.aspx.cs" Inherits="SES.CMS.AdminCP.Image" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h2>
        Cập nhật hình ảnh/Video</h2>
    <table class="tablet">
        <tr>
            <td class="style8">
                Tiêu đề
            </td>
            <td class="style9">
                <asp:TextBox ID="txtTitle" runat="server" Width="379px" ValidationGroup="submitGrp"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtTitle"
                    ErrorMessage="*** Cần nhập tiêu đề" ValidationGroup="submitGrp"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style8">
                Mô tả
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtDetail" TextMode="MultiLine" Width="500px" Height="120px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style8">
                Thuộc album
            </td>
            <td class="style9">
                <div style="float: left; vertical-align: middle;">
                    <asp:DropDownList ID="ddlAlbum" runat="server" AppendDataBoundItems="true" Width="250px">
                        <asp:ListItem Text=".: Không chọn :." Value="0"></asp:ListItem>
                    </asp:DropDownList>
                </div>
            </td>
        </tr>
        <tr>
            <td class="style8">
                Thuộc sản phẩm
            </td>
            <td class="style9">
                <div style="float: left; vertical-align: middle;">
                    <asp:DropDownList ID="ddlProduct" runat="server" AppendDataBoundItems="true" Width="250px">
                        <asp:ListItem Text=".: Không chọn :." Value="0"></asp:ListItem>
                    </asp:DropDownList>
                </div>
            </td>
        </tr>
        <tr runat="server" id="trVideo">
            <td class="style8">
                Video:
            </td>
            <td class="style9">
                <asp:TextBox ID="txtVideo" runat="server" Width="300px"></asp:TextBox>
                <span class="note-pro">Đường dẫn mẫu: http://youtu.be/<span style="color: Red;">PW94w-TU288</span>
                </span>
            </td>
        </tr>
        <tr>
            <td>
                Hình ảnh
            </td>
            <td>
                <asp:FileUpload ID="fuImage" runat="server" />
                &nbsp;
                <asp:HyperLink ID="hplImage" runat="server" Target="_blank" Visible="False">[Xem 
            ảnh]</asp:HyperLink>
            </td>
        </tr>
        <tr>
            <td>
                Phân loại
            </td>
            <td>
                <asp:RadioButton runat="server" ID="rdVideo" GroupName="gtype" />
                Video
                <asp:RadioButton runat="server" ID="rdImage" GroupName="gtype" />
                Hình ảnh
            </td>
        </tr>
        <tr>
            <td>
                Số thứ tự
            </td>
            <td>
                <asp:TextBox ID="txtOrder" runat="server" Width="50px" Text="0"></asp:TextBox>
                <asp:RangeValidator ID="RangeValidator1" runat="server" ErrorMessage="Nhập số" ControlToValidate="txtOrder"
                    Type="Integer" MinimumValue="0" MaximumValue="100"></asp:RangeValidator>
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Hiển thị trang chủ
                <asp:CheckBox runat="server" ID="cbIsHomePage" />
            </td>
        </tr>
        <tr>
            <td class="style8">
                &nbsp;
            </td>
            <td class="style4">
                <asp:Button ID="btnSave" runat="server" Text="Lưu" OnClick="btnSave_Click" ValidationGroup="submitGrp" />
                <asp:Button ID="btnReset" runat="server" Text="Hủy" />
            </td>
        </tr>
    </table>
</asp:Content>
